package com.dingpeikeji.quickdeer.modules.priceup.entity;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import com.dingpeikeji.quickdeer.core.common.persistence.DataEntity;

/**
 * 平台加价Entity
 * @author dingpei
 * @version 2017-03-08
 */
public class TPriceup extends DataEntity<TPriceup> {
	
	private static final long serialVersionUID = 1L;
	private Integer upid;		// 主键
	private String custtype;		// custtype
	private Double upratio;		// upratio
	
	public TPriceup() {
		super();
	}

	public TPriceup(String id){
		super(id);
	}

	@NotNull(message="主键不能为空")
	public Integer getUpid() {
		return upid;
	}

	public void setUpid(Integer upid) {
		this.upid = upid;
	}
	
	@Length(min=1, max=1, message="custtype长度必须介于 1 和 1 之间")
	public String getCusttype() {
		return custtype;
	}

	public void setCusttype(String custtype) {
		this.custtype = custtype;
	}
	
	@NotNull(message="upratio不能为空")
	public Double getUpratio() {
		return upratio;
	}

	public void setUpratio(Double upratio) {
		this.upratio = upratio;
	}
	
}